--[[
 -- *名称:GameEffectPart
 -- *描述:全屏特效层
 -- *版权:Copyright © 2016-2018 深圳市三只小熊科技有限公司 版权所有
 -- *作者:Administrator
 -- *创建日期:2017-10-20
 -- *修改日期:2017-10-20
 ]]
local CURRENT_MODULE_NAME = ...
local GameEffectPart = class("GameEffectPart",PokerPartBase) --登录模块
GameEffectPart.DEFAULT_PART = {}
GameEffectPart.DEFAULT_VIEW = "gameeffectlayer"

---
 -- [ctor 默认part构造方法]
 -- @DateTime 2017-09-20
 -- @param    owner [description]
 -- @param    data [description]
 -- @return    [description]
 --
function GameEffectPart:ctor(owner, data)
    GameEffectPart.super.ctor(self, owner, data)
    self._data = data;
end


---
 -- [activate 默认激活该part调用方法]
 -- @DateTime 2017-09-20
 -- @param    data [description]
 -- @return    [description]
 --
function GameEffectPart:activate(data)
	GameEffectPart.super.activate(self, CURRENT_MODULE_NAME)
end

---
 -- [deactivate 销毁该part调用方法]
 -- @DateTime 2017-09-20
 -- @return   [description]
 --
function GameEffectPart:deactivate()
    GameEffectPart.super.deactivate(self,CURRENT_MODULE_NAME)
    if self.view == nil then
		return
	else
		self.view:removeSelf()
		self.view =  nil
	end
end

---
 -- [getPartId 获取该part的partId]
 -- @DateTime 2017-09-20
 -- @return   [description]
 --
function GameEffectPart:getPartId()
	-- body
	return "GameEffectPart"
end
---
 -- 播放动画
 -- 
function GameEffectPart:playGameEffect( data )
    local animType, animData = data.animType, data.animData; 
    self:updateView("playGameEffect", animType, animData)
end

function GameEffectPart:onFrameData( data )
	local tableInfo = data.tableInfo;
	local tableState = tableInfo.tableState;
end

GameEffectPart.eventFuncMap = {
    [DdzEventConfig.EVENT_PLAY_GAMEEFFECT]       = GameEffectPart.playGameEffect;
};

return GameEffectPart 